export const leftChart = {
    title: {
      text: "进一周售票量",
    },
    tooltip: {
      trigger: "axis",
      axisPointer: {
        type: "cross",
        crossStyle: {
          color: "#999",
        },
      },
    },
    legend: {
      data: ["车票销量", "车票销售额"],
    },
    xAxis: [
      {
        type: "category",
        data: [
          "2022-6-20",
          "2022-6-21",
          "2022-6-22",
          "2022-6-23",
          "2022-6-24",
          "2022-6-25",
          "2022-6-25",
        ],
        axisPointer: {
          type: "shadow",
        },
      },
    ],
    yAxis: [
      {
        type: "value",
        min: 0,
        max: 25,
        interval: 5,
        axisLabel: {
          formatter: "{value}",
        },
      },
      {
        type: "value",
        min: 0,
        max: 25,
        interval: 5,
        axisLabel: {
          formatter: "{value}",
        },
      },
    ],
    series: [
      {
        name: "车票销量",
        type: "bar",
        tooltip: {
          valueFormatter: function (value) {
            return value + " ml";
          },
        },
        data: [1, 7, 3, 0, 20, 1, 8],
      },
      {
        name: "车票销售额",
        type: "line",
        yAxisIndex: 1,
        tooltip: {
          valueFormatter: function (value) {
            return value + " °C";
          },
        },
        data: [3, 4, 5, 6, 7, 8, 9],
      },
    ],
  }

export const rightChart = {
    tooltip: {
      trigger: "axis",
      axisPointer: {
        type: "shadow",
      },
    },
    grid: {
      left: "3%",
      right: "4%",
      bottom: "3%",
      containLabel: true,
    },
    xAxis: {
      type: "value",
      boundaryGap: [0, 0.01],
    },
    yAxis: {
      type: "category",
      data: ["贵州", "兰州", "三亚", "云南", "深圳", "广州"],
    },
    series: [
      {
        name: "2011",
        type: "bar",
        data: [18203, 23489, 29034, 104970, 131744, 630230],
      },
    ],
};